﻿using RuoVea.ExUtil;

namespace DailyReport.Server.Dto
{
    public class ReportDetailOutDto
    {
        /// <summary>
        /// 
        /// </summary>
        public long Id { get; set; }
        /// <summary>
        /// 日期
        /// </summary>
        public DateTime? Day { get; set; }
        /// <summary>
        /// 字符串时间
        /// </summary>
        public string Days { get { return Day?.ToDateString() ?? ""; } }

        /// <summary>
        /// 年
        /// </summary>
        public int Year { get { return Day?.Year ?? 1997; } }

        /// <summary>
        /// 月
        /// </summary>
        public int Month { get { return Day?.Month ?? 1; } }

        /// <summary>
        /// 周
        /// </summary>
        public int? Week { get; set; }
        /// <summary>
        /// 内容
        /// </summary>
        public string Content { get; set; }
        /// <summary>
        /// 内容2
        /// </summary>
        public string PlanContent { get; set; }
    }

    /// <summary>
    /// 
    /// </summary>
    public class Category
    {
        /// <summary>
        /// 
        /// </summary>
        public const string Day = "day";
        /// <summary>
        /// 
        /// </summary>
        public const string Week = "week";
        /// <summary>
        /// 
        /// </summary>
        public const string Month = "month";
    }
}
